#include "IScene.h"

IScene::IScene(void)
{
	isFirst = true;
}

IScene::~IScene(void)
{
}

void IScene::Release()
{
	
}

void IScene::Init(EngineStuff* engine)
{
	Engine = engine;	
	world->Initialization();
}

void IScene::BeforeFirstUpdate()
{	
}

void IScene::Update(DWORD elapsedTime)
{
	if(isFirst)
	{
		BeforeFirstUpdate();
		isFirst = false;
	}
	world->Update(elapsedTime);
	IScreen::Update(elapsedTime);
}
void IScene::Draw(DWORD elapsedTime)
{
	world->Draw(elapsedTime);
	IScreen::Draw(elapsedTime);
}
